package com.stone.framework.message;

import java.util.UUID;

/**
 * 請求報文
 * 
 * @author whocares
 * @date 2020/03/28
 */
public class ReqMessage<T> extends AbstractMessage<T> {

    private static final long serialVersionUID = -2434595224336200060L;

    /**
     * use for json
     */
    @Deprecated
    public ReqMessage() {}

    protected ReqMessage(T body) {
        super(body, UUID.randomUUID().toString().replace("-", ""));
    }

    public static <T> ReqMessage<T> build(T body) {
        ReqMessage<T> message = new ReqMessage<>(body);
        return message;
    }

}
